
console.log("popup.js")

const container = document.getElementById('container');
const qrcodeImage = document.getElementById('qrcode');
function getCurrentTabUrl(callback) {
    var queryInfo = {
        active: true,
        currentWindow: true
    };
    chrome.tabs.query(queryInfo, (tabs) => {
        var tab = tabs[0];
        var url = tab.url;
        callback(url);
    });
}
var qrcode = new QRCode(qrcodeImage, {
    width: 200,
    height: 200,
});
getCurrentTabUrl((url) => {
    qrcode.clear();
    qrcode.makeCode(url);
})
